import React from 'react'
import { Route,IndexRoute } from 'react-router'

import { App,Home,Shop,ShopDetail,Coupon,CouponDetail,Tour,User,NotFoundPage } from './containers'

export default(
  <Route path="/" component={App}>
    <IndexRoute component={Home}/>
    <Route path="shop">
      <IndexRoute component={Shop} />
      <Route path=":id" component={ShopDetail} />
    </Route>
    <Route path="coupon">
      <IndexRoute component={Coupon} />
      <Route path=":id" component={CouponDetail} />
    </Route>
    <Route path="tour" component={Tour} />
    <Route path="user" component={User} />
    <Route path="*" component={NotFoundPage} />
  </Route>
);